package com.kplan.join.service;

import com.kplan.join.model.MemberDto;
import com.kplan.join.model.dao.JoinDao;

public class JoinService {

	private static JoinService service;
	
	static {
		service = new JoinService();
	}
	
	private JoinService(){}
	
	public static JoinService getInstance() {
		return service;
	}
	
	public int register(MemberDto memberDto) {
		return JoinDao.getInstance().register(memberDto);
	}
	
	public int emailCheck(String email) {
		return JoinDao.getInstance().emailCheck(email);
	}
	
	public int nickCheck(String nick) {
		return JoinDao.getInstance().nickCheck(nick);
	}
	
}
